package com.demo2do.fms.admin.dao.authority;

import com.demo2do.core.persistence.annotation.Dao;
import com.demo2do.core.persistence.annotation.Query;
import com.demo2do.core.persistence.annotation.Variable;
import com.demo2do.fms.entity.vendor.Vendor;

/**
 * 
 * @author Ysy
 */
@Dao("hibernate")
public interface VendorDao {
    
    /**
     * load Vendor by id
     * 
     * @param id
     * @return
     */
    @Query("FROM Vendor WHERE id = :id AND disabled = false")
    public Vendor load(@Variable("id") String id);

}
